package com.software.broadcast.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class NormalAReceiver extends BroadcastReceiver {

    public NormalAReceiver() {
        Log.i("normal-receiver", "NormalAReceiver");
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getStringExtra("action");

        // 模拟拦截
        if (isOrderedBroadcast()) {
            abortBroadcast();
        }
    }
}
